package com.exam.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.exam.demo.entity.Question;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 功能描述
 *
 * @author yxj30
 * @date 2022/03/16  19:31
 */
@Mapper
public interface QuestionMapper extends BaseMapper<Question> {
//    @Select("select * from question where question_name like #{question_name}")
    Page<Question> findPage(@Param("objectPage") Page<Question> objectPage, @Param("question_title") String questionTitle,@Param("question_type") Integer questionType,@Param("course_id") String courseId,@Param("teacher_id") String teacherId);
}
